﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebSystem.WebControls.ExtendControl;

namespace ExtAspNet.Examples.basic
{
    public partial class hello : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnHello_Click(object sender, EventArgs e)
        {
            Random r = new Random();
            if (r.Next(0, 2) == 0)
            {
                Alert.ShowInTop("Hello ExtAspNet! This is a very long long long long text with line break.<br />This is a new line.", MessageBoxIcon.Information);
            }
            else
            {
                Alert.ShowInTop("Hello ExtAspNet!", MessageBoxIcon.Warning);
            }
        }
    }
}
